import request from "@/utils/request";

// 查询应用下载审核列表
export function listApproval(query) {
  return request({
    url: "/soft/approval/list",
    method: "get",
    params: query,
  });
}

// 查询应用下载审核详细
export function getApproval(id) {
  return request({
    url: "/soft/approval/" + id,
    method: "get",
  });
}

// 新增应用下载审核
export function addApproval(data) {
  return request({
    url: "/soft/approval",
    method: "post",
    data: data,
  });
}

// 修改应用下载审核
export function updateApproval(data) {
  return request({
    url: "/soft/approval",
    method: "put",
    data: data,
  });
}

// 删除应用下载审核
export function delApproval(id) {
  return request({
    url: "/soft/approval/" + id,
    method: "delete",
  });
}
// 应用下载面板
export function delDashboard(query) {
  return request({
    url: "/soft/approval/dashboard",
    method: "get",
    params: query,
  });
}
